package linter.POJO.UtilDTO;

import com.github.pagehelper.PageInfo;
import linter.POJO.DO.CollectPostsRelation;
import linter.POJO.DO.Posts;
import lombok.Data;

import java.util.List;

/**
 * @author 北煜
 */
@Data
public class CollectPostsUtilDTO {
    /**
    * 封装分页信息和文章信息
    */
    private PageInfo<CollectPostsRelation> pageInfo;

    /**
    * 封装文章信息
    */
    private List<Posts> posts;

    /**
     * 自定义构造函数
     */
    public CollectPostsUtilDTO(PageInfo<CollectPostsRelation> pageInfo, List<Posts> posts) {
        this.pageInfo = pageInfo;
        this.posts = posts;
    }
}
